package com.snake.spring.boot.smaple.retrofit.client;

import com.alibaba.fastjson.JSONObject;
import com.github.lianjiatech.retrofit.spring.boot.annotation.RetrofitClient;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;

/**
 * @author cheng
 */
@RetrofitClient(baseUrl = "${base.url:https://apple-channel-cx.chinahuanong.com.cn/}")
public interface HuaNongBizClient {
    /**
     * 登录接口
     * @param genericReq
     * @return
     */
    @Headers({"Content-type:application/json;charset=UTF-8"})
    @POST("singlePlatform/thirdParty.do")
    String login(@Body JSONObject genericReq);

    /**
     *  车型查询
     * @param genericReq
     * @return
     */
    @POST("singlePlatform/thirdParty.do")
    @Headers({"Content-type:application/json;charset=UTF-8"})
    String modelsQuery(@Body JSONObject genericReq);

    /**
     * 精确报价
     * @param genericReq
     * @return
     */
    @POST("singlePlatform/thirdParty.do")
    @Headers({"Content-type:application/json;charset=UTF-8"})
    String quotedPrice(@Body JSONObject genericReq);

    /**
     * 核保
     * @param genericReq
     * @return
     */
    @POST("singlePlatform/thirdParty.do")
    @Headers({"Content-type:application/json;charset=UTF-8"})
    String submit(@Body JSONObject genericReq);

    /**
     * 申请交易
     * @param genericReq
     * @return
     */
    @POST("singlePlatform/thirdParty.do")
    @Headers({"Content-type:application/json;charset=UTF-8"})
    String applyForPay(@Body JSONObject genericReq);

    /**
     * 订单查询
     * @param genericReq
     * @return
     */
    @POST("singlePlatform/thirdParty.do")
    @Headers({"Content-type:application/json;charset=UTF-8"})
    String orderQuery(@Body JSONObject genericReq);


    /**
     * 订单查询
     * @param genericReq
     * @return
     */
    @POST("singlePlatform/thirdParty.do")
    @Headers({"Content-type:application/json;charset=UTF-8"})
    String verifyCode(@Body JSONObject genericReq);


}


